package com.example.apprendrechinois.model.language;

import java.util.ArrayList;
import java.util.HashMap;

public class Language {
	public HashMap<String, Vowel> vowelsById = new HashMap<String, Vowel>();
	public ArrayList<Vowel> vowels = new ArrayList<Vowel>();

	public HashMap<String, Consonant> consonantsById = new HashMap<String, Consonant>();
	public ArrayList<Consonant> consonants = new ArrayList<Consonant>();

	public HashMap<String, Pinyin> pinyinsById = new HashMap<String, Pinyin>();
	public ArrayList<Pinyin> pinyins = new ArrayList<Pinyin>();
	
	
	public Vowel[] vowelsArray(){
		Vowel[] vowelsArr = new Vowel[vowels.size()];
		for(int i = 0 ; i < vowels.size() ; i++){
			vowelsArr[i] = vowels.get(i);
		}		
		return vowelsArr;
	}
	
}
